package com.cn.jiyun.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cn.jiyun.entity.pojo.Strategy;
import com.cn.jiyun.entity.pojo.User;
import com.cn.jiyun.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public User getUserByUsernameAndPassword(String username, String password) {
        return this.userMapper.getUserByUsernameAndPassword(username, password);
    }

    @Override
    public User findid(String username) {
        return userMapper.findid(username);
    }

    @Override
    public void up(User user) {
        userMapper.up(user);
    }

    @Override
    public User cha(String username) {
        return userMapper.cha(username);
    }


}
